from flask import Blueprint, render_template

from app.blog.model import Post

bp = Blueprint('blog', __name__, url_prefix='/blog',template_folder='templates',static_folder='static')

@bp.route('/')
def index():
    post = Post.query.get(1)
    return render_template('index.html', **locals())

